package com.example.zqm.git72.Service;

import com.example.zqm.git72.JavaBean.Activity;
import com.example.zqm.git72.JavaBean.Club;
import com.example.zqm.git72.JavaBean.Order;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/4/10.
 */

public interface ActivityService {
 @GET("workout/api.php/lists/mod/activity ")
    Call<List<Activity>>getList();
    @GET("workout/api.php/get/mod/activity ")
    Call<Activity>getActivityById(
            @Query("id") String id
    );
    @GET("workout/api.php/create/mod/signactivity/participantname/{name}/act_id/{id}/participanttel/{tel}/adultnum/{anum}/studentnum/{snum}/paytype/1/pay/{pay}/insurance/{people}/userid/{uid}")
    Call<Activity>aa(
    );
    @GET("workout/api.php/create/mod/signactivity/participantname/{participantname}/act_id/{act_id}/participanttel/{participanttel}/adultnum/1/studentnum/1/paytype/1/pay/{pay}/insurance/{insurance}/userid/{userid}")
    Call<Integer> signActivity(
            @Query("participantname") String participantname,
            @Query("act_id") String act_id,
            @Query("participanttel") String participanttel,
            @Query("pay") String pay,
            @Query("insurance") String insurance,
            @Query("userid") String userid
    );
   @GET("workout/api.php/lists/mod/activity/search_key/{name} ")
   Call<List<Activity>>bysearch(
           @Query("name") String name
   );
    @GET("workout/api.php/lists/mod/sign/userid/{user_id}")
    Call<List<Order>>sign(
            @Path("user_id") String user_id
    );

}
